﻿using AutoMapper;
using HamcoWcs.Entitys.WcsLocations;

namespace HamcoWcs.Models.ForeEndModels.Wms
{
    public class LocationProfile : Profile
    {
        public LocationProfile()
        {

            CreateMap<WcsLocation, UIWcsLocation>();
            CreateMap<WcsLocation, UILocInfo>()
                .ForMember(des => des.Name, opt => opt.MapFrom(src => src.WcsLocName))
                .ForMember(des => des.State, opt => opt.MapFrom(src => src.LocStatus.ToString()));
        }
    }
}
